package com.bing.beans;

import org.springframework.stereotype.Component;

/**
 * Created by kaibb on 14-7-27.
 */

@Component
public class Performer {

    public void perform(String name) {
        System.out.println("Hello perform name: " + name);
    }

    public int perform(int age) {
        System.out.println("Perform age: " + age);
        return age;
    }

    public void perform() throws Exception {
        System.out.println("Hello perform exception: ");
        throw new Exception("hello");
    }

    public void performAround(int a) throws Exception {
        System.out.println("performAround : " + a);
        if (a == 1) {
            throw new Exception("hello Exception");
        }
    }

    public void performParameter(String str) {
        System.out.println("performParameter setParameter: " + str);

    }

}
